<?php
include("../libreria/config.php");
include("../libreria/db.php");
?>


//$id=$_GET['id'];


	Notas:
	<table>
			<tr>
				<th>id_nota</th>
				<th>id_profesor</th>
				<th>matricula</th>
				<th>Asistencia</th>
				<th>Participacion</th>
				<th>Ex_parcial</th>
                <th>Ex_Final</th>
                <th>Total</th>
                 <th>Excel</th>
                  <th>PDF</th>
                
			</tr>

			<?php
				$sql = "select * from tbl_nota";
				$result = dbQuery($sql);
				
				while($row = dbFetchAssoc($result))
				{
					echo "<tr>
							<td>".$row['id_nota']."</td>
							<td>".$row['id_profesor']."</td>
							<td>".$row['matricula']."</td>
							<td>".$row['asistencia']."</td>
							<td>".$row['participacion']."</td>
							<td>".$row['ex_parcial']."</td>
							<td>".$row['ex_final']."</td>
							<td>".$row['total']."</td>
							<td><a href='genera_excel.php?id=".$row['id_nota']." target='_blank'>Excel</a> </td>
						<tr>						
						";			
				}
mysql_free_result($result);				
			?>
		</tbody>
	</table>

<?PHP
header("Content-Type: application/vnd.ms-excel;"); 


?>